package com.jxc.dao;

import java.util.List;

import com.jxc.entity.TbMenu;

public interface permissionrole {

	public abstract List QueryMeunList();//菜单资源列表
	public abstract List QueryMeunListByParentID(int ID);//根据父节点查询菜单资源列表
	public List<Object[]> QueryRoleList();//获取所有角色
	public List QueryOpByMenu(String menuName);//根据模块，获取权值	
	public List QueryMenu(int orderby);//获取所有一级菜单名
	public Boolean saveMenu(TbMenu menu);//添加一级菜单
	public List QueryMenuIDBymenuName(String menuName);//根据菜单名字，查询其id
	public void updateMenu(TbMenu menu);//根据菜单名字查id
	public List QueryMenuByName(String menuName);	//根据菜单名字查id
	public List QueryMenu2(int orderby,int ParentOrderbyid);
	//获取菜单总数
	public int QueryMenuCount();
	public int QueryMenuIDandSubCount(int ParentId);////获取菜单下，子菜单的个数
	//根据菜单orderby删除菜单
	public void deleteMenuByOrderby(int orderby);
	//根据父菜单ID，删除父菜单小于参数的值的子菜单
	public void deleteMenuSub(int ParentId);
	//根据菜单ID删除旗下小于orderby的子菜单
	public void deleteMenuSubByOrderby(int ParentId,int orderby);
	public List QueryMenuBig(int orderby);
	public List getRoleMenu(int roleId);
}
